package com.ruoyi.view.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.view.mapper.AirQualityCountMapper;
import com.ruoyi.view.domain.AirQualityCount;
import com.ruoyi.view.service.IAirQualityCountService;
import com.ruoyi.common.core.text.Convert;

/**
 * air_quality_countService业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-11
 */
@Service
public class AirQualityCountServiceImpl implements IAirQualityCountService 
{
    @Autowired
    private AirQualityCountMapper airQualityCountMapper;

    /**
     * 查询air_quality_count
     * 
     * @param airQuality air_quality_count主键
     * @return air_quality_count
     */
    @Override
    public AirQualityCount selectAirQualityCountByAirQuality(String airQuality)
    {
        return airQualityCountMapper.selectAirQualityCountByAirQuality(airQuality);
    }

    /**
     * 查询air_quality_count列表
     * 
     * @param airQualityCount air_quality_count
     * @return air_quality_count
     */
    @Override
    public List<AirQualityCount> selectAirQualityCountList(AirQualityCount airQualityCount)
    {
        return airQualityCountMapper.selectAirQualityCountList(airQualityCount);
    }

    /**
     * 新增air_quality_count
     * 
     * @param airQualityCount air_quality_count
     * @return 结果
     */
    @Override
    public int insertAirQualityCount(AirQualityCount airQualityCount)
    {
        return airQualityCountMapper.insertAirQualityCount(airQualityCount);
    }

    /**
     * 修改air_quality_count
     * 
     * @param airQualityCount air_quality_count
     * @return 结果
     */
    @Override
    public int updateAirQualityCount(AirQualityCount airQualityCount)
    {
        return airQualityCountMapper.updateAirQualityCount(airQualityCount);
    }

    /**
     * 批量删除air_quality_count
     * 
     * @param airQualitys 需要删除的air_quality_count主键
     * @return 结果
     */
    @Override
    public int deleteAirQualityCountByAirQualitys(String airQualitys)
    {
        return airQualityCountMapper.deleteAirQualityCountByAirQualitys(Convert.toStrArray(airQualitys));
    }

    /**
     * 删除air_quality_count信息
     * 
     * @param airQuality air_quality_count主键
     * @return 结果
     */
    @Override
    public int deleteAirQualityCountByAirQuality(String airQuality)
    {
        return airQualityCountMapper.deleteAirQualityCountByAirQuality(airQuality);
    }
}
